import request from '@/utils/request'

import { jdyadmin } from '@/settings'
/**
 * ---------------------------------------------
 * -----------------检测产品发货-----------------
 * ---------------------------------------------
 */
// 查询产品发货
export function getTestFahuo(data){
  return request({
    url: `${jdyadmin}/assayShipmentsDetection/seleteAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 新增产品发货
export function addTestFahuo(data){
  return request({
    url: `${jdyadmin}/assayShipmentsDetection/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增产品发货
export function updateTestFahuo(data){
  return request({
    url: `${jdyadmin}/assayShipmentsDetection/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除产品发货
export function deleteTestFahuo(id){
  return request({
    url: `${jdyadmin}/assayShipmentsDetection/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}

/**
 * ---------------------------------------------
 * -----------------检测抽样样品-----------------
 * ---------------------------------------------
 */
// 查询检测抽样样品
export function getTestYangpin(data){
  return request({
    url: `${jdyadmin}/assaySampleInform/seleteAssaySampleInform`,
    method: 'post',
    data
  })
}

// 新增检测抽样样品
export function addTestYangpin(data){
  return request({
    url: `${jdyadmin}/assaySampleInform/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增检测抽样样品
export function updateTestYangpin(data){
  return request({
    url: `${jdyadmin}/assaySampleInform/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除检测抽样样品
export function deleteTestYangpin(id){
  return request({
    url: `${jdyadmin}/assaySampleInform/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}

/**
 * ---------------------------------------------
 * ---------------检测设备使用记录---------------
 * ---------------------------------------------
 */
// 查询设备使用记录
export function getTestShebei(data){
  return request({
    url: `${jdyadmin}/assayFacilityRecord/seleteAssayFacilityRecord`,
    method: 'post',
    data
  })
}

// 新增设备使用记录
export function addTestShebei(data){
  return request({
    url: `${jdyadmin}/assayFacilityRecord/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增设备使用记录
export function updateTestShebei(data){
  return request({
    url: `${jdyadmin}/assayFacilityRecord/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除设备使用记录
export function deleteTestShebei(id){
  return request({
    url: `${jdyadmin}/assayFacilityRecord/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}

/**
 * ---------------------------------------------
 * -----------------检测委托账单-----------------
 * ---------------------------------------------
 */
// 查询检测委托账单
export function getTestZhangdan(data){
  return request({
    url: `${jdyadmin}/assayEntrustBills/seleteAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 新增检测委托账单
export function addTestZhangdan(data){
  return request({
    url: `${jdyadmin}/assayEntrustBills/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增检测委托账单
export function updateTestZhangdan(data){
  return request({
    url: `${jdyadmin}/assayEntrustBills/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除检测委托账单
export function deleteTestZhangdan(id){
  return request({
    url: `${jdyadmin}/assayEntrustBills/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}

/**
 * --------------------------------------------------
 * -------------------检测中心分类--------------------
 * --------------------------------------------------
 */
// 查询检测中心分类
export function getTestFenlei(data){
  return request({
    url: `${jdyadmin}/assayIngredientsTypes/seleteAssayIngredientsTypes`,
    method: 'post',
    data
  })
}

// 新增检测中心分类
export function addTestFenlei(data){
  return request({
    url: `${jdyadmin}/assayIngredientsTypes/addAssayIngredientsTypes`,
    method: 'post',
    data
  })
}

// 新增检测中心分类
export function updateTestFenlei(data){
  return request({
    url: `${jdyadmin}/assayIngredientsTypes/updateAssayIngredientsTypes`,
    method: 'post',
    data
  })
}

// 删除检测中心分类
export function deleteTestFenlei(id){
  return request({
    url: `${jdyadmin}/assayIngredientsTypes/deleteAssayIngredientsTypes/${id}`,
    method: 'delete'
  })
}

/**
 * --------------------------------------------------
 * -------------检测中心报表原辅料统计表---------------
 * --------------------------------------------------
 */
// 查询检测中心报表原辅料统计表
export function getTestYuanfuliao(data){
  return request({
    url: `${jdyadmin}/assayRawIngredientsForms/seleteAssayRawIngredientsForms`,
    method: 'post',
    data
  })
}

// 新增检测中心报表原辅料统计表
export function addTestYuanfuliao(data){
  return request({
    url: `${jdyadmin}/assayRawIngredientsForms/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增检测中心报表原辅料统计表
export function updateTestYuanfuliao(data){
  return request({
    url: `${jdyadmin}/assayRawIngredientsForms/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除检测中心报表原辅料统计表
export function deleteTestYuanfuliao(id){
  return request({
    url: `${jdyadmin}/assayRawIngredientsForms/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}

/**
 * ------------------------------------------------------
 * -------------检测中心报表原辅料统计表结果---------------
 * ------------------------------------------------------
 */
// 查询检测中心报表原辅料统计表结果
export function getTestYuanfuliaoJieguo(data){
  return request({
    url: `${jdyadmin}/assayRawIngredientsFormsResult/seleteAssayRawIngredientsFormsResult`,
    method: 'post',
    data
  })
}

// 新增检测中心报表原辅料统计表结果
export function addTestYuanfuliaoJieguo(data){
  return request({
    url: `${jdyadmin}/assayRawIngredientsFormsResult/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增检测中心报表原辅料统计表结果
export function updateTestYuanfuliaoJieguo(data){
  return request({
    url: `${jdyadmin}/assayRawIngredientsFormsResult/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除检测中心报表原辅料统计表结果
export function deleteTestYuanfuliaoJieguo(id){
  return request({
    url: `${jdyadmin}/assayRawIngredientsFormsResult/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}

/**
 * ------------------------------------------------------
 * -------------检测中心成品入库前数据日报表---------------
 * ------------------------------------------------------
 */
// 查询检测中心成品入库前数据日报表
export function getTestRuku(data){
  return request({
    url: `${jdyadmin}/assayPutReportForms/seleteAssayPutReportForms`,
    method: 'post',
    data
  })
}

// 新增检测中心成品入库前数据日报表
export function addTestRuku(data){
  return request({
    url: `${jdyadmin}/assayPutReportForms/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增检测中心成品入库前数据日报表
export function updateTestRuku(data){
  return request({
    url: `${jdyadmin}/assayPutReportForms/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除检测中心成品入库前数据日报表
export function deleteTestRuku(id){
  return request({
    url: `${jdyadmin}/assayPutReportForms/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}


/**
 * ---------------------------------------------------------
 * -------------检测中心成品入库前数据日报表结果---------------
 * ---------------------------------------------------------
 */
// 查询检测中心成品入库前数据日报表结果
export function getTestRukuJieguo(data){
  return request({
    url: `${jdyadmin}/assayPutReportFormsResult/seleteAssayPutReportFormsResult`,
    method: 'post',
    data
  })
}

// 新增检测中心成品入库前数据日报表结果
export function addTestRukuJieguo(data){
  return request({
    url: `${jdyadmin}/assayPutReportFormsResult/addDepartmentFacility`,
    method: 'post',
    data
  })
}

// 新增检测中心成品入库前数据日报表结果
export function updateTestRukuJieguo(data){
  return request({
    url: `${jdyadmin}/assayPutReportFormsResult/updateAssayEntrustBills`,
    method: 'post',
    data
  })
}

// 删除检测中心成品入库前数据日报表结果
export function deleteTestRukuJieguo(id){
  return request({
    url: `${jdyadmin}/assayPutReportFormsResult/deleteDepartmentFacility/${id}`,
    method: 'delete'
  })
}
